package com.study.demo.service;

import com.study.demo.model.Cat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class CatService {

    @Autowired
    @Qualifier("cat2")
    private Cat cat;

    public void hello() {
        System.out.println(cat.toString());
    }
}
